import service from '..'

import type { IAccount } from '@/types'

export function accountLogin(account:IAccount){
  return service.post({
    url:'/login',
    data:account
  })
}

export function getUserInfoById(id:number){
  return service.get({
    url:`/users/${id}`
  })
}

export function getUserMenuByRoleId(id:number){
  return service.get({
    url:`/role/${id}/menu`
  })
}
